<?php
/**
 * Author: Administrator
 * Date: 2022/7/22 1:34
 */

namespace DesignPatterns\Structural\DependencyInjection;


class ArrayConfig extends AbstractConfig implements Parameters
{

    public function get($key, $default=null)
    {
        return $this->storage[$key] ?? $default;
    }

    public function set($key, $val)
    {
        $this->storage[$key] = $val;
    }
}